Purpose - The purpose of this paper is to explore the impact of moral equity, relativism, and attitude towards digital piracy behaviour in a developing country. End-user piracy is more difficult to detect than commercial piracy. Thus, an effective strategy to combat piracy needs a comprehensive understanding of both the supply and demand sides of piracy. The current study focuses on the demand side by investigating the impact of moral equity, relativism, and attitude on consumer piracy behaviour in Indonesia. Design/methodology/approach - Using a convenient sample in Yogyakarta, Indonesia, questionnaires were distributed in a large private university. In addition, through snowball sampling techniques, the surveys were also distributed to other adults who live within a walking distance from the campus. The data collection resulted in 222 usable surveys (a response rate of 68 per cent). Findings - In Indonesia, moral equity had a negative and significant impact on purchases of illegal copies of music CDs and pirated software. Relativism affects the purchase of pirated software positively, but its effect on purchases of illegal copies of CDs is insignificant. Attitude towards the act was negatively impacted by moral equity for CDs and software. Relativism only significantly affects the purchase of pirated software but in the opposite direction while it has failed to reach significance for illegal music CD purchases. Attitude towards the software piracy and purchases of illegal copies of music CDs positively affect consumer s digital piracy behaviour. Finally, Indonesian consumers feel more morally wrong to purchase illegal copies of CDs than to buy pirated software. Practical implications - In the context of Indonesia, higher moral equity has affected piracy behaviour negatively. Therefore, efforts to reduce piracy should focus on highlighting the importance of fairness and justice.