In 1813, it was renamed San Fernando in honor of King Fernando VII of Spain for his courage in the defense of the city during the Siege of Cádiz (Peninsular War) by the Napoleonic army.