Demosthenes grew interested in politics during his time as a logographer, and in 354 BC he gave his first public political speeches. He went on to devote his most productive years to opposing Macedon's expansion. He idealized his city and strove throughout his life to restore Athens' supremacy and motivate his compatriots against Philip II of Macedon. He sought to preserve his city's freedom and to establish an alliance against Macedon, in an unsuccessful attempt to impede Philip's plans to expand his influence southward by conquering all the other Greek states.