A toddler has died and his grandmother has been taken to hospital after they were struck by a car in Sydney's west on Thursday morning.

The woman and child, understood to be an 18-month-old boy, were walking on Marion Street in Auburn when the collision occurred about 9.30am.

It appears a Toyota sedan travelling in the same direction allegedly struck the boy, police said.