Greeks constructed the giant horse to gain entrance to Troy during the Trojan War. Once inside the city, Greeks inside the horse opened the gates to let in the Greek army and take the city.