First is BIOS seeing hard drive? If BIOS does not see a drive then no system will boot.
Then the BIOS has to find a bootable system in the MBR (if BIOS not UEFI).
MBR will then find more boot code either Windows in Windows partition or if grub it has some code (core.img) in sectors just after MBR and grub menu in the Ubuntu partition.