When you're making pilaf, it's important to coat the rice grains with the fat in the pan and heat them through before adding the liquid. This helps keep the grains separate. You also have to ensure you don't use too much liquid and don't cook the rice too long.
"If you want to make an apple pie from scratch, you must first create the universe." -Carl Sagan