It was composed by Knowles , Kasseem `` Swizz Beatz '' Dean and Sean Garrett .
Ring the Alarm is an R&B song written by Beyoncé Knowles , Kasseem `` Swizz Beatz '' Dean , and Sean Garrett for Knowles ' second solo album B'Day ( 2006 ) .