In most industrial environments, it is usually considered that machines are accessible throughout the planning horizon, but in real situation, machines may be unavailable due to a scheduled preventive maintenance where the periods of unavailability are known in advance. The main idea of this paper is to consider different preventive maintenance policies on machines regarding open shop scheduling problem (OSSP) with sequence dependent setup times (SDST) using immune algorithm. The preventive maintenance (PM) policies are planned for maximizing availability of machines or keeping minimum level of reliability through the production horizon. The objective function of the paper is to minimize makespan. In total, the proposed algorithm extensively is compared with six adaptations of existing heuristic and meta-heuristic methods for the problem through data sets from benchmarks based on Taillard’s instances with some adjustments. The results show that the proposed algorithm outperforms other algorithms for this problem.