France used the right moment and occupied Alger in 1830.