Public safety is seriously threatened by road accidents, which are a major global concern in urban settings. The capital of Bangladesh, Dhaka City, stands out among these locations as a perfect illustration of the complicated difficulties confronted by highly populated cities in ensuring road safety. In this paper, we have used time-series analysis to model the temporal patterns and trends in accident occurrence and machine learning algorithms to identify accident hotspots and comprehend the causes of traffic accidents.