Proper sunlight access has a positive impact on the physical and mental health of citizens, as well as on reducing energy consumption. This capacity may be limited by inappropriate urban morphology, and urban canyons and buildings are deprived of proper daylight. The purpose of this research is to study the current solar potential on the surface of the canyons and buildings and the effect of urban morphology parameters on the amount of each of the main variables of the research in Ilam, Iran. First, solar radiation, daylight illuminance, and air temperature were measured at different points of the studied canyons for three days. After that, the studied area was modeled with Rhino-Grasshopper software, and simulation was done using Ladybug Tools and UMI plugin. The results showed that the amount of daylight available in most canyons is low. Less than 30 % of the canyon’s surfaces benefited from 6 h of direct sunlight during the measurement. The simulation results for the 62 studied buildings showed that the highest amount of daylight is related to buildings with a height of more than 10 m. 56 % of the buildings had an annual solar radiation of less than 500 mw/m2. The roofs of the buildings received the most radiation, accounting for 72 % of the total radiation. By examining the parameters of urban morphology, it was found that the most influential parameter on the amount of solar radiation was the floor area, and the height of the buildings had the most influence on energy consumption.