READFIELD — Kents Hill School will permanently close in June after more than 200 years in central Maine.

The private, college preparatory school is no longer financially viable, according to a message posted on the school’s website by Board of Trustees President Patricia Hatler.

Hatler said the school, which serves about 200 students in grades 9 and up, is similar to other independent schools that face declining enrollment and higher operating costs.

“Even at full enrollment, the school is too small to achieve financial sustainability,” she wrote. “Ultimately, this was a determining factor in the board’s conclusion that there is no viable path forward to continue Kents Hill School’s current operations.”

The school will remain open through the rest of the school year and continue to offer academics, athletics and extracurricular activities.

In a separate message, Head of School Molly T. MacKean said the school has helped many students grow and learn “to work in pursuit of a better world.”

“As undeniably painful as today’s news is, I find myself grateful for the gift of time,” she wrote. “Initially to grieve, and then to honor and celebrate Kents Hill’s legacy.”

The school was founded in 1824 and offers boarding and day school programs.