Answer
Greece gained its independence from the Ottoman Empire after the Greek War of Independence, which lasted from 1821 to 1830. During this conflict, several foreign philhellenes, including Thomas Cochrane, a Scottish Admiral, joined the Greek side and played a significant role in securing their victory. Cochrane's naval expertise and leadership were instrumental in defeating the Ottoman forces at sea, ultimately contributing to Greece's independence.