A junior high teacher in Boise, Idaho is accused of raping a male student, authorities say.

Eric McDermott, 59, was arrested on Monday. The teacher was charged with rape and sexual battery committed by lewd or lascivious acts on a minor 16 to 17 years of age, according to the Idaho Statesman.

McDermott taught geography at Fairmont Junior High and coached a boy's basketball team.

During a Monday arraignment, a prosecutor explained that McDermott taught the male victim when he was 15 years old.

63-YEAR-OLD OKLAHOMA MAN ARRESTED FOR POSSESSING 2,000 CHILD PORNOGRAPHY FILES

Eric McDermott mugshot

Eric McDermott was charged with of rape and sexual battery committed by lewd or lascivious acts on a minor 16 to 17 years of age (Ada County Sheriff's Office)

McDermott is accused of contacting the then-16-year-old on a "dating hookup site" in 2020 and sending nude photos.

McDermott allegedly communicated with the teen through the site for several days. Authorities believe McDermott then picked the boy up and raped him at his home.

POLICE CAPTAIN ALLEGEDLY SENT PENIS PHOTOS, OFFERED FEMALE DETECTIVE FAVORS FOR PANTIES: LAWSUIT

Boise School District told parents in a letter that McDermott was put on leave after school officials learned about the arrest.

Fairmont Junior High exterior

McDermott taught geography and coached a boy's basketball team at Fairmont Junior High in Boise, Idaho. (Google Maps)

"We understand that this news will raise concerns about student safety and we want to assure our families that the District is full cooperating with law enforcement and prosecutors as they investigate this matter," the letter read.

McDermott is being held at Ada County Jail on $1 million bail.

CLICK HERE TO GET THE FOX NEWS APP

Fox News reached out to Boise School District and Boise Police Department for statements, but has not heard back.