IntroductionIn April 2019, 14 children were diagnosed with HIV infection by a private healthcare provider in Larkana district, Sindh province, Pakistan. Over the next 3 months, 930 individuals were diagnosed with HIV, >80% below 16 years, the largest ever outbreak of HIV in children in Pakistan. In this protocol paper, we describe research methods for assessing likely modes of HIV transmission in this outbreak and investigate spatial and molecular epidemiology.Methods and analysisA matched case–control study will be conducted with 406 cases recruited. Cases will be children aged below 16 years registered for care at the HIV treatment centre at Shaikh Zayed Children Hospital in Larkana City. Controls will be children who are HIV-uninfected (confirmed by a rapid HIV test) matched 1:1 by age (within 1 year), sex and neighbourhood. Following written informed consent from the guardian, a structured questionnaire will be administered to collect data on sociodemographic indices and exposure to risk factors for parenteral, vertical and sexual (only among those aged above 10 years) HIV transmission. A blood sample will be collected for hepatitis B and C serology (cases and controls) and HIV lineage studies (cases only). Mothers of participants will be tested for HIV to investigate the possibility of mother-to-child transmission. Conditional logistic regression will be used to investigate the association of a priori defined risk factors with HIV infection. Phylogenetic analyses will be conducted. Global positioning system coordinates of participants’ addresses will be collected to investigate concordance between the genetic and spatial epidemiology.Ethics and disseminationEthical approval was granted by the Ethics Review Committee of the Aga Khan University, Karachi. Study results will be shared with Sindh and National AIDS Control Programs, relevant governmental and non-governmental organisations, presented at national and international research conferences and published in international peer-reviewed scientific journals.