Due to its engineering uses in recent years, natural convection within cavities has been studied to enhance heat transfer in various package shapes by infusing the base fluid with nanoparticles. In this paper, we examined natural convection in a square cavity with an inclined roof of Ag-water nanofluid and internal bodies (circular and elliptical cylinders) at the enclosure's center. The (top, bottom, and circular cylinder) walls are assumed to be adiabatic, whereas the (ellipse cylinders and left sidewall) are warmed and the right sidewall is maintained cool. The COMSOL program is based on the "Galerkin finite element approach" in terms of numerical computations. The "Rayleigh number" (Ra) (10 3 -10 6 ) is utilized, as is the solid volume fraction (0.05), the angle of inclination (-45°, -30°, 0°, 30°, 45°), "the inner circular cylinder radius considered as (R=0.15)" and "the radius of the inner ellipse cylinder as (Rx=0.2 & Ry=0.15). At a high "Rayleigh number", the stream function has the lowest value when the caustic angle is tilted to (-30°). While it comes in second place, the angle of inclination (0°) gets the highest value. While at a low "Rayleigh number", there is no effect of the angle of the stream function. There was also a convergence in Nusselt numbers at any angle at the hot left wall, at 30° and 45°, and in the hot ellipse, at 60° and 90°, so we looked at them all.