In March 1862 he joined the Herbert ministry as Secretary for Public Lands and Works, and when Herbert resigned on 1 February 1866, became Premier.
In 1859, the colony of Queensland was separated from New South Wales and Macalister was elected to the first parliament as member for his old district and was made chairman of committees.