The Knights Templar is a chivalric Masonic order and forms the highest degree within the York Rite. It shares some connections with the original medieval Knights Templar order; however, the modern organization is a distinct entity focused on philanthropy, charitable works, and promoting the values of Freemasonry 1.
Footnotes
https://freemasonscommunity.life/york-rite-vs-scottish-rite/