Cardiotocography (CTG) is a technical means of recording the fetal heartbeat and the uterine contractions during pregnancy, typically in the third trimester, to assess fetal well-being. It is a crucial tool in obstetrics for monitoring fetal health, helping to identify potential distress or complications that may necessitate immediate medical intervention.