The Jumma Masjid, the mosque inside the fort, was converted from a palace in the 15th century by Gujarat Sultan Mahmud Begada and has a rare roofed courtyard with three octagonal openings which may once have been covered by domes.