A truck loaded with beer has overturned on a motorway in Sydney’s west.

Emergency workers were called to the M7 at Cecil Hills about 2.30am on Monday after the semi-trailer crashed and rolled.

Police said the driver suffered a head injury and was taken to hospital for treatment and mandatory tests.