folly

Definition

A lack of good sense or judgment; a foolish act or idea.

Example

"Building a mansion in the middle of the desert was an expensive folly."