Albanians also played a crucial role during the Ottoman–Venetian War (1499–1503), Ottoman–Hungarian Wars and Ottoman–Habsburg wars before gaining Independence.