This review presents an insight into our current knowledge of the atmospheres of the planets Venus, Mars, Jupiter, Saturn, Uranus and Neptune, the satellite Titan, and those of exoplanets. It deals with the thermal structure, aerosol properties (hazes and clouds, dust in the case of Mars), chemical composition, global winds, and selected dynamical phenomena in these objects. Our understanding of atmospheres is greatly benefitting from the discovery in the last 3 decades of thousands of exoplanets. The exoplanet properties span a broad range of conditions, and it is fair to expect as much variety for their atmospheres. This complexity is driving unprecedented investigations of the atmospheres, where those of the solar systems bodies are the obvious reference. We are witnessing a significant transfer of knowledge in both directions between the investigations dedicated to Solar System and exoplanet atmospheres, and there are reasons to think that this exchange will intensity in the future. We identify and select a list of research subjects that can be conducted at optical and infrared wavelengths with future and currently available ground-based and space-based telescopes, but excluding those from the space missions to solar system bodies.