Taroudant's kasbah is a substantial walled enclosure in the northern part of the medina, distinct from the main ramparts. It served as the administrative and residential quarter for the ruling elite during the Alaouite period, and parts of the original palace structures survive in various states of decay alongside inhabited houses.
The interior is a neighbourhood unto itself, with narrow lanes, small mosques, and a population that has lived there for generations. You can wander in freely — there are no entry fees and no official tour routes, which means you explore at your own pace. Look for the ornate doorways and surviving carved plasterwork that hint at the kasbah's former grandeur.