A number of recent research projects have explored applications of geographic profiling to counterterrorism and counterinsurgency. These efforts analyzed geospatial patterns of terrorist cells (e.g., the spatial relationship between safe houses and weapon storage sites), tested the ability of these techniques to locate terrorist bases from minor crimes and seditious graffiti, and examined the utility of geoprofiling for locating preparation sites used by insurgents for improvised explosive devices and rocket attacks. In appropriate cases, geoprofiling models have utility for prioritizing geo-intelligence and identifying logistic bases of terrorist operations. This chapter first discusses environmental criminology and the geography of crime. It then covers the basics of geographic profiling, its various applications, and the role of geospatial intelligence and crime pattern theory in counterterrorism. Finally, it examines the geospatial and temporal patterns of terrorism to show how geoprofiling can be used to analyze seditious graffiti, insurgency attacks, cyberterrorism, and bioterrorism.