CloudTrail is a service provided by Amazon Web Services (AWS) that records and stores API call activities and events within the AWS account. It captures information such as the identity of the caller, the time of the API call, the actions performed, and the response received. This data is stored in a log file, which can be viewed and analyzed for security, compliance, and troubleshooting purposes.