Egan was elected to the New South Wales Legislative Assembly on 7 October 1978, standing in the seat of Cronulla.
In the few years before he became Treasurer when Labor was in Opposition, Egan had been the Shadow Finance Minister.