Depends on how much dirt. Motor-powered ram or vibratory compactors work well for medium sized areas, for big areas you'll need a ride-roller. The most important step is to do it in many small layers - no compaction technique works on more than a couple inches at a time.
--Bushytails