Based on the principle of nationality, a country can try its own nationals under its own laws for crimes committed abroad.
In international law, the question of whether to prioritize the territorial principle or the nationality principle sometimes arises.