The 18 May 2020 5.0 Qiaojia earthquake occurred in Qiaojia County, Yunnan Province, away from the 3 August 2014 6.5 Ludian earthquake. This earthquake was well recorded by dense local seismic stations of the Qiaojia array constructed near the Xiaojiang fault zone. The focal mechanism of the mainshock exhibited strike‐slip motion with a centroid depth of 8 km. We determined the seismogenic fault of the Qiaojia earthquake using aftershock relocation with local dense seismic arrays. The mainshock is located on a previously unmapped fault. Aftershocks clearly delineated east–west rupture plane, which was not revealed by the regional seismic network due to relatively sparse stations. The length and width of the aftershock zone are and 3 km, respectively. The focal mechanisms of 70 aftershocks with magnitudes showed similar focal mechanism with the mainshock. The stress field inverted from focal mechanisms of the aftershocks is consistent with the tectonic stress field. The coseismic and postseismic static coulomb stress changes show that the Ludian earthquake has a negative impact on the Qiaojia earthquake with a value of , implying that the Qiaojia earthquake was unlikely statically triggered by the Ludian earthquake. The Qiaojia earthquake sequence was characterized by low ‐value and low‐decay rate in the aftershock area, indicating high‐seismic risk in this region. The dense seismic observation allows us to study the moderate earthquake in detail and provides us with valuable information of near‐fault seismicity to analyze earthquake hazard and the potential of large earthquakes in the future.