Jennifer Garner shared an emotional message as her and Ben Affleck’s kids move “from one phase to the next.”

The actress thanked their three children’s elementary school teachers in a lengthy Instagram post after her son Samuel’s graduation.

“Thank you for a beautiful 13 years,” she gushed Thursday. “I cannot imagine our family landing anywhere better.”

Jennifer Garner and kids
Jennifer Garner honored her and Ben Affleck’s kids’s teachers in a touching post.Getty Images

Jennifer Garner
The actress thanked the instructors after son Samuel’s graduation.Thecelebrityfinder/MEGA

Jennifer Garner and kids
She called them a “safe haven” for him, as well as Violet and Seraphina.BG020/Bauergriffin.com / MEGA

Garner, who is also the mother of Violet, 18, and Seraphina, 15, called the school a “safe haven” for her little ones.

“Thank you for caring about my children with me, for tying their shoes and holding their hands,” she wrote. “Thank you for disciplining my kids when they’ve needed it and for offering more hugs than some children receive in a lifetime.

“I wanted my three to have a safe space where they could focus on the business of being little and where education and character were prioritized,” the “Alias” alum, 52, continued, noting that she also got instructors willing to dress up for Halloween and play hockey at lunch.

Jennifer Garner and daughter Violet
Violet graduated from high school last month.GC Images

Jennifer Garner
The “13 Going on 30” star cried at the ceremony.jennifergarner/Instagram

Samuel, 12, graduated Wednesday, with Garner celebrating the milestone with a party at Affleck’s rental home.

The actor, notably, has been living separately from his wife, Jennifer Lopez, amid divorce rumors — but the “Let’s Get Loud” singer, 54, did attend the bash.

She was also present at Violet’s party earlier this month to honor the teen’s high school graduation.

Ben Affleck
Garner shares her little ones with Affleck.Getty Images

Jennifer Garner, BenAffleck and kids
The former couple were married from 2005 to 2015.Kelly/MEGA

Lopez did, however, leave solo after one hour.

Garner, who was married to Affleck from 2005 to 2015, cried at Violet’s commencement, sharing the emotional photos with her Instagram followers.

“Tell me you have a graduate without telling me you have a graduate,” she captioned the teary snaps. “bless our hearts.”

Jennifer Lopez and Ben Affleck
The actor married Jennifer Lopez in 2022.GC Images

Jennifer Lopez and Ben Affleck
The couple are currently facing divorce rumors.Getty Images

Violet is seemingly headed to Yale University, with the grad rocking a sweater from the college in a recent photo shared on her school’s social media.

Lopez lunched with her eldest stepchild Thursday at the Maybourne Hotel.

The Grammy nominee has two kids of her own — 16-year-old twins Emme and Max — and she and Affleck blended their families after tying the knot in 2022.

Jennifer Lopez and Ben Affleck
They are living separately.GC Images

Jennifer Lopez and Ben Affleck
The duo did, however, put on a united front at Samuel and Violet’s parties.SplashNews.com

The “Gigli” co-stars are now selling their $60 million Beverly Hills, Calif., home, with more photos of the interior recently appearing in its Zillow listing.

Affleck considers the property “too far” from his kids, while Lopez finds it “too big,” People reported Tuesday.

The pair have yet to comment on split speculation besides J.Lo shutting down a bold reporter during her “Atlas” press tour last month.