Read the story
Look across Muscat's harbor and you'll see two forts staring at each other from the rocks. They were built by men with every reason to be afraid.
In 1507, the Portuguese commander Afonso de Albuquerque stormed this town, slaughtered most of its people, and burned it. In 1552, the Ottoman admiral Piri Reis besieged it for eighteen days and destroyed its fort. After the Ottomans sacked Muscat again in 1582, the Portuguese built in stone.
In 1587, Captain Belchior Calaça was sent to raise a fortress on the rocky outcrop east of the harbor. He gave it a cistern and cannon, and named it for Saint John. Across the water rose its twin, the Admiral's fort. Today they are Al Jalali and Al Mirani.
The threat that finally broke Portugal came from inland. Nasir bin Murshid, founder of Oman's Ya'rubid line of imams, pried the Portuguese out of port after port. He failed to take Muscat around 1633, but by 1648 it was all Portugal had left. Nasir died in 1649. His successor, Imam Sultan bin Saif, finished the job.
That December, a small band seized Muscat in a surprise night attack, by one account disguised as peasants, weapons hidden in vegetable baskets. About six hundred Portuguese fled by sea. Others held out in Al Mirani until January 23, 1650. Muscat's Hindu merchants are said to have helped, and the chronicler Ibn Ruzaiq adds a stranger thread: that year, a Portuguese commander named Pereira sought to marry a Hindu trader's daughter.
For most of the twentieth century, Al Jalali was Oman's main prison, holding some two hundred inmates; in 1963, forty-four broke out, and most were quickly caught. The prison closed in the 1970s. Restored in 1983 as a museum, the fort opens for visiting heads of state, but not the public.
Built to keep invaders out, then used to keep prisoners in, Al Jalali now keeps nearly everyone out.