Background: Good quality midwifery care saves the lives of women and babies. Continuity of midwife carer (CMC), a key component of good quality midwifery care, results in better clinical outcomes, higher care satisfaction and enhanced caregiver experience. However, CMC uptake has tended to be small scale or transient. We used realist evaluation in one Scottish health board to explore implementation of CMC as part of the Scottish Government 2017 maternity plan.Methods: Participatory research, quality improvement and iterative data collection methods were used to collect data from a range of sources including facilitated team meetings, local and national meetings, quality improvement and service evaluation surveys, audits, interviews and published literature. Data analysis developed contextmechanism-outcome configurations to explore and inform three initial programme theories, which were refined into an overarching theory of what works for whom and in what context. Results: Trusting relationships across all organisational levels are the context in which CMC works. However, building these relationships during implementation requires good leadership and effective change management to drive whole system change and foster trust across all practice and organisational boundaries. Trusting relationships between midwives and women were valued and triggered a commitment to provide high quality care; CMC team relationships supported improvements in ways of working and sustained practice, and relationships between midwives and providers in different care models either sustained or constrained implementation. Continuity enabled midwives to work to full skillset and across women's care journey, which in turn changed their perspective of how they provided care and of women's care needs. In addition to building positive relationships, visible and supportive leadership encourages engagement by ensuring midwives feel safe, valued and informed.Conclusion: Leadership that builds trusting relationships across all practice and organisational boundaries develops the context for successful implementation of CMC. These relationships then become the context that enables CMC to grow and flourish. Trusting relationships, working to full skill set and across women's care journey trigger changes in midwifery practice. Implementing and sustaining CMC within NHS organisational settings requires significant reconfiguration of services at all levels, which requires effective leadership and cannot rely solely on ground-up change.