This study aims to analyze the influence of leadership style, facilities and infrastructure, and compensation on the work environment and work motivation, with the work environment as a mediating variable. The research was conducted on 97 civil servants (ASN) of the General Bureau of West Sumatra Province using the Structural Equation Modeling-Partial Least Square (SEM-PLS) method. The object of this study was the civil servants of the General Affairs Bureau of West Sumatra Province, Indonesia. The research design encompasses all the processes required in planning and implementing the research. This study employed a descriptive and causal research design. The sample was drawn using a saturated sampling design, which included the entire population, resulting in a total of 98 individuals.The results reveal that leadership style and facilities and infrastructure have a significant effect on the work environment, while compensation does not significantly affect the work environment. Furthermore, leadership style, facilities and infrastructure, and compensation significantly affect work motivation, and the work environment also has a significant effect on work motivation. In addition, the work environment mediates the influence of leadership style and facilities and infrastructure on work motivation, but does not mediate the effect of compensation on work motivation.These findings emphasize that employee work motivation can be strengthened through effective leadership, adequate facilities and infrastructure, and a conducive work environment. Therefore, organizations need to prioritize leadership development and workplace facility improvements to sustainably enhance the motivation of civil servants. Facilities and Infrastructure significantly influence Work Motivation through the Work Environment as an intervening variable for Civil Servant Employees of the General Bureau of West Sumatra Province. Compensation does not significantly influence Work Motivation through the Work Environment as an intervening variable for Civil Servant Employees of the General Bureau of West Sumatra Province.