Kingdom of Croatia-Slavonia
Gaj died in Zagreb, Kingdom of Croatia-Slavonia, Austria-Hungary, in 1872 at the age of 62.