SummaryDevices in close proximity can directly communicate with each other through device‐to‐device (D2D) communication, bypassing the need for base stations. To minimize the delay for D2D active clients, we use a sequential approach to reuse cellular‐type resources. Unlike conventional methods that focus solely on uplink or downlink resource distribution, our study introduces a novel optimization technique to maximize network throughput. Our proposal incorporates a hybrid approach that combines both downlink and uplink techniques for resource allocation. We utilize random forest and game theory algorithms to ensure smooth D2D communication while reducing interference between cellular and D2D pairings. Our hybrid structure effectively addresses challenges arising from intra‐ and inter‐cell interferences resulting from spectrum reusability and deployment. This approach also improves power control and quality of service. Traditionally, NP‐hard optimization solutions are proposed for mixed‐integer nonlinear problems. In our study, the critical stages include channel assignment and energy allocation. The objective problem in resource allocation considers parameters such as the transmission power of D2D active clients, cellular users, connection distance, base stations, and quality of service constraints. Our proposed hybrid method aims to enhance overall spectrum efficiency and network throughput. Simulated results demonstrate the superiority of our modified hybrid technique compared to existing joint resource allocation methods. This comprehensive approach represents a significant advancement in addressing the complexities associated with D2D communication, offering improved efficiency and performance in contemporary network environments.