In this paper, different methods are utilized to solve the coordination issue involving directional overcurrent relays (DOCRs) and distance relays. The proper coordination of DOCRs and distance relays is a critical issue for system security in electrical networks. Finding the DOCRs setting, pickup current(Ip) and timed dial setting (TDS), and operating time for zone-2 of distance relays is the primary objective of solving the coordination problem. The constant parameters A & B of the directional overcurrent relay that are responsible to control the form of the relay´s characteristics as well as the Ip and TDS have been regarded as variables in this problem. The optimal value for these four DOCR settings has been determined using different optimization techniques. The primary and backup relays must operate sequentially and without any violations, and this must be guaranteed by optimization techniques. In order to determine the operation time for zone-2 and DOCRs setting, optimization methods are examined utilizing the 8-bus and IEEE 30-bus networks. Different optimization algorithms, including recent and traditional techniques, are compared. The obtained results show the superiority of the genetic algorithm (GA) in solving the coordination problem of distance relays and DOCRs. Also, the obtained results prove the ability of the GA method compared to the particle swarm algorithm (PSO), grey wolf optimization (GWO), water cycle technique (WCA), equilibrium optimizer (EO), African vultures optimization algorithm (AVOA), flow direction algorithm (FDA), and gorilla troops optimizer (GTO) techniques.