When did ancient Greece become a country?

Ancient Greece was never a country. It was comprised of hundreds of independent city-states spread around the Mediterranean and Black Seas.