When the trade unions formed the Australian Labor Party following the defeat of the 1890s strikes, the AWU became a powerful influence in the party, particularly in Queensland and Western Australia, and to a lesser extent in the other states. Labor state governments were heavily influenced by AWU leaders such as Edward Grayndler, Tom Dougherty and NSW AWU Secretary Charlie Oliver. Labor was in government in Queensland from 1915 to 1929 and from 1932 to 1957, and the AWU was able to exert considerable political influence through long-serving premiers such as William Forgan Smith and Ned Hanlon.