What is the function of mbr?
Well, assuming you mean "Master Boot Record".
The master boot record is a 512 byte strip of data on a disk
which contains, along with a few other things, the partition table
for the disk in question and the bootstrap info for the operating
system AND the disk identification. The last one is not always
used.
The MBR is very important.