Urinary tract infection (UTI) is common in children aged <5 years with diarrhoea, but little is known about risk factors, aetiology and outcome of such children. We aimed to evaluate these knowledge gaps of UTI in children aged <5 years with diarrhoea. We enrolled all children aged <5 years with diarrhoea admitted to Dhaka Hospital of the International Centre for Diarrhoeal Disease Research, Bangladesh, between May 2011 and April 2013, who had history of fever (⩾38 °C) and obtained a urine sample for culture. Diarrhoea with UTI (confirmed by culture) constituted cases (n = 26) and those without UTI constituted controls (n = 78). Threefold controls were randomly selected. The case-fatality rate was comparable in cases and controls (4% vs. 1%, P = 0·439). Escherichia coli (69%) and Klebsiella (15%) were the most commonly isolated pathogens. Persistent diarrhoea, pneumonia and prior antibiotics use were identified as risk factors for UTI in logistic regression analysis (P < 0·05 for all). Thus, children with diarrhoea presenting with persistent diarrhoea, pneumonia, and prior antibiotic use should be investigated for UTI for their prompt management that may reduce morbidity.