political_decisions = {
	form_Iberia = {
		picture = iberia
		potential = {
			is_greater_power = yes
			has_country_flag = european_expansion
			OR = {
				tag = SPA
				tag = POR
			}
			NOT = {
				exists = IBE
			}
		}	
		allow = {
			war = no
			SPA = {
				all_core = {
					OR = {
						owner = {
							war = no
							OR = {
								tag = THIS
								OR = {
										in_sphere = THIS
									vassal_of = THIS
								}
							}
						}
						province_id = 517
					}
				}
			}
			POR = {
				all_core = {
					OR = {
						OR = {
							owned_by = THIS
							owner = {
								in_sphere = THIS
							}
						}
					}
				}
			}
		}
		
		effect = {
			prestige = 15
			any_country = {
				limit = {
					OR = {
						tag = SPA
						tag = POR 
					}
					in_sphere = THIS
					NOT = {
						tag = THIS
					}
				}
				annex_to = THIS
			}
			SPA = { all_core = { add_core = IBE } }	
			POR = { all_core = { add_core = IBE } }				
			change_tag = IBE
			add_accepted_culture = portuguese
			add_accepted_culture = spanish
			add_accepted_culture = catalan
			add_accepted_culture = basque
			add_accepted_culture = galician
		}
		ai_will_do = {
			factor = 1 
		}
	}
	iberian_gibraltar = {
		potential = {
			is_greater_power = yes
			tag = IBE
			ENG = {
				owns = 517
			}
			NOT = { has_country_flag = iberian_gibraltar }
		}	
		allow = {
			has_country_flag = european_expansion
			war = no }
					
		effect = {
			set_country_flag = iberian_gibraltar
			prestige = 5
			517 = { add_core = IBE } }
		ai_will_do = {
			factor = 1
		}
	}
	iberian_Perpignan = {
		potential = {
			is_greater_power = yes
			tag = IBE
			NOT = { has_country_flag = iberian_gibraltar2 }
		}	
		allow = {
			has_country_flag = european_expansion
			war = no }
					
		effect = {
			set_country_flag = iberian_gibraltar2
			prestige = 5
			464 = { add_core = IBE } }
		ai_will_do = {
			factor = 1
		}
	}	
}