Residents south of Bunbury were woken by gunfire and found bullet holes in their front door yesterday.
A large group of people were in the Dalyellup house when loud gunshots rang out about 9.25pm.
No one was injured in the alleged drive-by shooting.
South West Detectives have charged a 42-year-old Dalyellup man with criminal damage.
He was remanded in the Bunbury Magistrates Court this morning to appear again on Monday.
It will be alleged he punched the front door of the Dalyellup residence prior to the below mentioned incident, causing a glass panel to smash.
A 20-year-old Dalyellup hman has been charged with acts likely to cause injury and possessing an unlicensed firearm.
He will appear in the Bunbury Magistrates Court on Friday.Police ask anyone with information to call Crime Stoppers on 1800 333 000.