what is the name of the type of reaction where a more reactive element replaces another element in a compound?

The reaction is called a single replacement reaction , also known as a single displacement reaction or simply a displacement reaction in this context.