MOSCOW — Ramzan A. Kadyrov, the pugnacious president of the southern Republic of Chechnya and a close ally of President Vladimir V. Putin, finally had enough Wednesday of social media users’ mocking him relentlessly for seeming to push polygamy.

His solution? Keep women locked up at home and off social media.

“Lock them in, do not let them go out, and they will not post anything,” Mr. Kadyrov said in a video to a sheepish group of men and women who kept their arms folded across their chests and their eyes firmly on the ground during the harangue.

The scene, filmed at what appears to be his government palace and broadcast on local television, was prompted by what Mr. Kadyrov, who has long shown a flair for hyperbole, described as “The Wedding of the Millennium.”

The social media explosion was set off last weekend in Grozny, the Chechen capital, when a 17-year-old bride was married off to a pal of Mr. Kadyrov’s, a district police chief pushing 50 and reportedly already married.