A novel heterocyclic compound is provided. In particular, a novel heterocyclic compound which can improve the element characteristics of a light-emitting element is provided. A novel light-emitting element with high emission efficiency and high heat resistance is provided. A heterocyclic compound represented by General Formula (G1). A represents any of a dibenzothiophenyl group, a dibenzofuranyl group, and a carbazolyl group. DBq represents a dibenzo[f,h]quinoxalinyl group. In addition, n is 0 or 1. Each of Ar1 to Ar4 independently represents a substituted or unsubstituted arylene group having 6 to 10 carbon atoms. In Ar1 to Ar4, the adjacent arylene groups may be bonded to each other to form a ring. When the adjacent arylene groups in Ar1 to Ar4 form a fluorene skeleton, the fluorene skeleton may have a substituent.