PurposeThis research integrates maintenance planning and production scheduling from a green perspective to reduce the carbon footprint.Design/methodology/approachA mixed-integer nonlinear programming (MINLP) model is developed to study the relation between production makespan, energy consumption, maintenance actions and footprint, i.e. service level and sustainability measures. The speed scaling technique is used to control energy consumption, the capping policy is used to control CO2 footprint and preventive maintenance (PM) is used to keep the machine working in healthy conditions.FindingsIt was found that ignoring maintenance activities increases the schedule makespan by more than 21.80%, the total maintenance time required to keep the machine healthy by up to 75.33% and the CO2 footprint by 15%.Research limitations/implicationsThe proposed optimization model can simultaneously be used for maintenance planning, job scheduling and footprint minimization. Furthermore, it can be extended to consider other maintenance activities and production configurations, e.g. flow shop or job shop scheduling.Practical implicationsMaintenance planning, production scheduling and greenhouse gas (GHG) emissions are intertwined in the industry. The proposed model enhances the performance of the maintenance and production systems. Furthermore, it shows the value of conducting maintenance activities on the machine's availability and CO2 footprint.Originality/valueThis work contributes to the literature by combining maintenance planning, single-machine scheduling and environmental aspects in an integrated MINLP model. In addition, the model considers several practical features, such as machine-aging rate, speed scaling technique to control emissions, minimal repair (MR) and PM.