Proof of work is a type of consensus mechanism. A consensus mechanism requires everyone on the network to agree on all the transactions made. It is used to secure a blockchain. To keep it honest and without fraud.