The title you're looking for is Shadow of the Colossus.
Released originally for the PlayStation 2 and later remade for newer platforms, the game drops you into a vast, forbidden land as a lone hero named Wander. Your mission is to track down and defeat sixteen towering colossi, each one a massive creature that you must climb and strike at its weak points to bring down.
What made it stand out was its hauntingly beautiful, empty world and the unusual, bittersweet way it told its story with almost no dialogue. If giant boss battles are what you remember, this is almost certainly the game.