The Second Law of thermodynamics states that heat cannot be completely converted into work in a cyclic process without any other effect. There's always some waste heat that must be rejected to a colder reservoir, establishing limits on thermal efficiency.