Authorities on Sunday continued to investigate what led a man to fatally shoot himself just before deputies entered his home and found he had been living for months with a corpse.

Neighbors contacted the Harris County Sheriff’s Office on Saturday evening about concerns they hadn't seen one of the men who lived at the home for months, said Deputy Thomas Gilliland, an agency spokesman.

At the home in west Houston, deputies "did notice that there were a lot of flies and a bad odor from one end of the house," Gilliland said.

TEXAS OFFICIALS SEARCH FOR MISSING RADIOGRAPHIC CAMERA WITH RADIOACTIVE MATERIAL LOST IN HOUSTON

After entering the home, the deputies heard a shot and found the body of a man with a self-inflicted gunshot wound, Gilliland said.

Texas Fox News graphic

A Texas man shot himself after living with a corpse for months.

"In another adjoining bedroom, they did find the body of a male also that had been severely decomposed," Gilliland said, citing a timeframe of at least several months.

TEXAS DEATH ROW INMATE WHO GOUGED OUT OWN EYES SEEKS CLEMENCY

He said an autopsy was planned on the decomposed body.

Investigators believe the two men lived together but said they were trying to determine other details about their relationship.

CLICK HERE TO GET THE FOX NEWS APP

Both men were believed to be in their 60s. Their names have not been released by authorities.