It spread through several suburbs over 50 terrifying minutes and ended in a hail of gunfire on a busy Western Sydney street.

Some of the chaotic details about how Daniel King, 32, came to be shot dead by officers outside Penrith Police Station have been revealed.

The domestic violence incident began when King arrived at the home of a woman who is pregnant with his child.

This is how the night unfolded.

8:30pm, Marayong

The rampage started outside Stacey Taylor's house. ( ABC News: Mark Reddie )

King arrived at the Marayong home of Stacey Taylor about 32 kilometres from Sydney's CBD.

Ms Taylor, a mother of three, said King had been pressuring her to get an abortion in the weeks leading up to the attack, and had sent her threatening text messages.

Shortly after she put her children to bed, Ms Taylor said King began firing at the house with what police later confirmed was a pump-action shotgun.

The bullet holes in Ms Taylor's Marayong home tell the story. ( ABC News )

The bullets shattered the front windows and Ms Taylor called police while hiding in a bedroom.

No one was injured.

9:15pm, St Marys

King turned his attention to two police stations after he shot at the house. ( Instagram: Supplied )

King changed into a dark t-shirt and trousers before driving about 15km from Marayong to St Marys Police Station in his white Hyundai.

When the bodybuilder arrived, he began firing his gun into the station.

A couple who live next door said they were watching television and were "terrified" by the sound of gunshots and could not sleep afterwards.

Linda Gray lives across the road from the station and said she arrived home from work just after 9:00pm and heard five or six shots moments after she walked in the door.

"It was scary. The reason we live across the road from the police station is because it makes us feel safer," she said.

9:35pm, Penrith

A police officer received pellet wounds to his head in the attack. ( ABC News )

King then drove to Penrith police station about 7.5km further west and left his car on High Street.

About 9:35pm the 32-year-old began shooting at officers outside the police station who returned fire.

The standoff was filmed by terrified witnesses, who screamed as they watched King hit the pavement after officers fired at him at least 20 times.

At this time, police believed a witness running from the scene was a second offender, and took King inside the station to give him first aid.

However, he died.

The car King used was still outside Penrith Police Station the morning after the shooting. ( ABC News: Lily Mayers )

A male constable was taken to Westmead Hospital to be treated for "pellet wounds to his head".

His injuries are not life-threatening.