merge is a DML like insert or update but this can only be executed with some Standard objects, Accounts, Contact and Leads.
This merge statement is used in order to remove duplicate records from your database.
For instance, you have 2 contacts duplicated associated to the same Account