By default, Active Directory performs online defragmentation every 12 hours as part of the Garbage Collection process. Online defragmentation doesn't compact the database, it only optimizes the data storage. To compact the AD database (ntds.dit), you can perform an offline defragmentation by following the procedure...
