The incident occurred at a home in the 10800 block of Sixth Ave. S. at approximately 9 p.m. Monday.
Investigators said a man who lives at the home had just arrived when two armed men approached him and forced their way into the house. Once inside, the men pistol-whipped the man, deputies said.
A woman who was inside the home was raped, according to investigators.
An 18-month-old toddler was asleep in the home at the time. The child was not injured.
"This is a very, very serious crime," said Sgt. John Hall of the King County Sheriff's Office. "We have two suspects armed with pistols that forced their way into an apartment."
The armed men ransacked the home before taking off with several items. They were described as two black men between 19 and 25 years old and between 5-foot-7 and 5-foot-9 in height.