York High has hired longtime assistant Steve Freeman as its girls’ basketball coach.

Freeman, 65, replaces Rick Clark, who retired after York won the Class A state title. Clark won four state championships and 508 games in 34 seasons at York.

Freeman was Clark’s assistant and junior varsity coach from 1998-2011 and came back this past season as the associate head coach. His hiring was approved Wednesday by the York School Committee.

Freeman teaches history at the high school and coaches the golf team. He was an assistant boys’ basketball coach at York under Larry Rioux, John Griffin and Rick Brault prior to working with Clark. This will be his first stint as a varsity head coach.

“It’s a challenge I’ve always thought I might be interested in doing and this was the right time for me,” Freeman said. “I’ve had a lot of support from the community, which I really need to thank. It’s been very humbling. That helped me make my decision. My son has also been a wealth of information.”

Freeman’s son, also named Steve, is the girls’ basketball coach at Marshwood High.