 His mother Maria Kazimiera repeatedly expressed her worry over her son's precarious health in her letters which survived to the present day.Father Kostrzycki became James' guardian and educator in 1671.With his father's election as King of Poland in 1674 the education of Prince James Sobieski became a state matter.