In the last few years, the rapid diffusion of components produced through additive manufacturing processes has boosted the research on design methodologies based on topology optimization algorithms. Structural topology optimization is largely employed since it permits to minimize the component weight and maximize its stiffness and, accordingly, optimize its resistance under structural loads. On the other hand, thermal topology optimization has been less investigated, even if in many applications, such as turbine blades, engines, heat exchangers, thermal loads have a crucial impact. Currently, structural and thermal optimizations are mainly considered separately, despite the fact that they are both present and coupled in components in service condition. In the present paper, a novel methodology capable of defining the optimized structure under simultaneous thermomechanical constraints is proposed. The mathematical formulation behind the optimization algorithm is reported. The proposed methodology is finally validated on literature benchmarks and on a real component, confirming that it permits to define the topology, which presents the maximized thermal and mechanical performance.