Write SQL query to solve given problem: Who directed the most popular movie?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT T2.director FROM movies_total_gross AS T1 INNER JOIN director AS T2 ON T1.movie_title = T2.name ORDER BY CAST(REPLACE(trim(T1.total_gross, '$'), ',', '') AS REAL) DESC LIMIT 1