What is mining in blockchain?

Understand the consensus of blockchains and how blocks are linked together using proof of work