The incident happened near 131st and Towne Road in Carmel at a new home construction site.
The man was working on a foundation around a house. when the dirt gave way and trapped him.
Carmel Fire along with help from a trench rescue team from Westfield worked to free the man.
Medics transported the man to the hospital to be treated for a broken leg.