Chandigarh serves as the capital city for both Punjab and Haryana while being a Union Territory. This unique arrangement was created when Punjab was divided in 1966, and Chandigarh was designated as the shared capital and a centrally administered territory.