Originally built by a Mughal emperor in 1590, the current form was completed in the early 19th century.