BEIJING — China’s Communist Party on Tuesday elevated President Xi Jinping to the same exalted status as the nation’s founding father, Mao Zedong, by writing his name and ideas into the party constitution.

The historic decision, at the end of a weeklong party congress, sent a clear signal to officials throughout China that questioning Mr. Xi and his policies would be ideological heresy.

The decision solidified Mr. Xi’s position as China’s most powerful leader in decades after only five years of leading the country, making it harder for rivals to challenge him and his policies.

While there may be no “Little Red Book” of quotations for mass consumption like in the bygone Mao era, Mr. Xi’s thinking will now infuse every aspect of party ideology in schools, the media and government agencies.