When you capture a Settlement, it falls into unrest for several turns, causing unhappiness and stopping it from building or buying anything. Any captured Settlement also downgrades into a Town.

Placing a commander in the Settlement will help lower this unhappiness. If you conquer a Settlement that originally belonged to you, all unrest penalties disappear because the city is considered liberated.

Tip: Gaining Settlements through peace deals avoids unrest, so sometimes it's smart to mix diplomacy with your military actions.