Notwithstanding his domestic reforms, Mahmud's reign was also marked by nationalist uprisings in Ottoman-ruled Serbia and Greece, leading to significant loss of territory for the Empire following the emergence of an independent Greek state.