This question already has an answer here:
I am an indian passport holder. I am going to Mogadishu from Delhi via Dubai. My transit time is 6-7 hours at Dubai airport. Also, I have different flights (Air India & Jubba airways). My first flight arrives at terminal 1 and my seconds flight departs from terminal 2. Also I have a check-in luggage.
Do I need a transit visa in Dubai?